<?php
namespace app\admin\behavior;

use app\common\services\LoginService;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/6/21
 * Time: 17:51
 */
class CheckAuth
{
    public function run()
    {
//        LoginService::registerLoginController('login');
        LoginService::registerLoginUrl('/admin/login/login?token=cc');
        LoginService::registerExceptUrls(['index/index', 'addonService/index']);
        LoginService::registerSessionKey('admin_login_user');
        LoginService::checkLogin();
    }
}